<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Order/index')}">订单管理</a></li>

    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('Order/index')}">
        <!--订单号:-->
        <!--<input type="text" class="form-control" name="order_no" style="width: 120px;" value="{:input('request.order_no/s','')}" placeholder="请输入订单号">-->

        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('Order/index')}">清空</a>
    </form>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th width="50">ID</th>
            <th>订单号</th>
            <th>用户id</th>
            <th>支付状态</th>
            <th>下单时间</th>
            <th>订单类型</th>
            <th>订单金额</th>

        </tr>
        </thead>
        <tbody>
        <foreach name="orders" item="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.order_no}</td>
                <td>uid:{$vo.uid}<br>用户：{$vo.user.user_nickname}
                </td>
                <td>
                    <if condition="$vo['pay_status'] eq 0">
                        未支付
                        <else />
                       已支付
                    </if>
                </td>
                <td>
                    <if condition="$vo['type'] eq 0">
                        会费订单
                        <else />
                        报名费用
                    </if>
                </td>
                <td>{$vo.create_time|date="Y-m-d H:m:s",###}</td>

                </td>
                <td>{$vo.price}</td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>